import KZJRequest from '../../index'
import { TRequestDefaultResult } from '../../type'

enum Singer {
  Singers = '/artist/list' //排行榜数据
}

export function getSingers(
  area = -1,
  type = -1,
  initial: number | string = -1,
  limit = 30
) {
  return KZJRequest.get<TRequestDefaultResult>({
    url: Singer.Singers,
    showLoading: true,
    params: {
      type,
      initial,
      area,
      limit
    }
  })
}
